import {SAVE_CANVAS_LINE_ARR, SAVE_ENDOGENOUS_CONTROL_TARGET, SAVE_GROUP, SAVE_REFERENCE_SAMPLE, SAVE_STANDARD_OBJ, SAVE_TARGET_NAME, SAVE_SAMPLES_} from "./constants";

export const saveGroup = reduxGroup => ({
  type: SAVE_GROUP,
  reduxGroup
});

export const saveTargetName = reduxTargetNameArr => ({
  type: SAVE_TARGET_NAME,
  reduxTargetNameArr
});

export const saveAnalysisShowLineArr = analysisShowLineArr => ({
  type: SAVE_CANVAS_LINE_ARR,
  analysisShowLineArr
});

export const saveStandardObj = standardObj => ({
  type: SAVE_STANDARD_OBJ,
  standardObj
});

export const saveReferenceSample = referenceSample => ({
  type: SAVE_REFERENCE_SAMPLE,
  referenceSample
});

export const saveReferenceGroup = referenceGroup => ({
  type: SAVE_REFERENCE_SAMPLE,
  referenceGroup
});

export const saveEndogenousControlTarget = endogenousControlTarget => ({
  type: SAVE_ENDOGENOUS_CONTROL_TARGET,
  endogenousControlTarget
});

export const saveSamples_ = samples_ => ({
  type: SAVE_SAMPLES_,
  samples_
});